package com.bdqn.zhang.service.impl;

import com.bdqn.zhang.mapper.MessageMapper;
import com.bdqn.zhang.pojo.Message;
import com.bdqn.zhang.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <Description> <br>
 *
 * @author tao<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2019/10/15 16:07 <br>
 * @see com.bdqn.zhang.service.impl <br>
 */
@Service("messageService")
public class MessageServiceImpl implements MessageService {

    @Autowired
    private MessageMapper messageMapper;

    @Override
    public Long count() {
        return messageMapper.count();
    }

    @Override
    public Long addMsg(Message msg) {
        return messageMapper.addMsg(msg);
    }
}
